

/**
 * 选择性别 单选题
 */
export const getSexQuestion = (list) => {
    list.push(
        {
            type: 0,
            content: '您的性别?',
            orders: list.length + 1,
            required:0,
            options: [
                {
                    orders:1,
                    value: 'A',
                    content: '男'
                },
                {
                    orders:2,
                    value: 'B',
                    content: '女'
                }
            ]
        }
    )
}
/**
 * 姓名
 */
export const getNameQuestion = (list) => {
    list.push({
        type: 2,
        content: '请输入您的姓名',
        inputType: 'text',
        orders: list.length + 1,
        required: 1
    })
}

/**
 * 获取基本信息 必填  一连添加三题
 */
export const getInfoQuestion = (list) => {
    list.push({
        type: 2,
        content: '请输入您的姓名',
        inputType: 'text',
        orders: list.length + 1,
        required: 1
    })
    list.push({
        type: 2,
        content: '请输入您的手机号',
        inputType: 'text',
        orders: list.length + 1,
        required: 1
    })
    list.push({
        type: 2,
        content: '请输入您的地址',
        inputType: 'text',
        orders: list.length + 1,
        required: 1
    })
}

/**
 * 获取QQ
 */
export const getQQQuestion = (list) => {
    list.push({
        type: 2,
        content: '请输入您的QQ号',
        inputType: 'number',
        orders: list.length + 1,
        required: 1
    })
}
/**
 * 手机号
 */
export const getPhoneQuestion = (list) => {
    list.push({
        type: 2,
        content: '请输入您的手机号',
        inputType: 'text',
        orders: list.length + 1,
        required: 1
    })
}

/**
 * 年龄
 */
export const getAgeQuestion = (list) => {
    list.push({
        type: 2,
        content: '请输入您的年龄',
        inputType: 'number',
        orders: list.length + 1,
        required: 1
    })
}

/**
 * 创建快捷题目工具类
 */
export const quickList = [
    {
        name:'基本信息',
        callFun: getInfoQuestion
    },
    {
        name:'性别',
        callFun: getSexQuestion
    },

    {
        name:'手机号',
        callFun: getPhoneQuestion
    },
    {
        name:'姓名',
        callFun: getNameQuestion
    },
    {
        name:'QQ账号',
        callFun: getQQQuestion
    },
    {
        name:'年龄',
        callFun: getAgeQuestion
    }
]